import Vue from 'vue'
import App from './App.vue'
import router from './router.js'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './assets/global.css'
import Axios from 'axios'
import { store } from './store/index.js'
import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';
import '@/assets/fonts/iconfont.css'
// import 'iview/dist/styles/iview.css';

// 远程服务器的地址
// 配置请求的跟路径
Axios.defaults.baseURL = 'http://localhost:8080/api/shopmall/'
// 全局绑定axios  
Vue.prototype.$axios = Axios
Axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';

Vue.config.productionTip = false


Axios.interceptors.request.use(config => {
  return config
})
Vue.use(ElementUI);
Vue.use(ViewUI);

new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')